home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / strategy / shanghai.000 / shanghai / shanghai-1.0 / Makefile < prev    next >
Makefile  |  1995-06-01  |  1KB  |  39 lines

  1. CPPFLAGS    = -I../xforms/FORMS
  2. TARGET_ARCH = -m486 -b i486-linuxaout
  3. LDLIBS      = -L../xforms/FORMS -L/usr/X11/lib/aout -lforms -lX11 -lm
  4. CFLAGS      = -pipe -g -O3 -fstrength-reduce -Wall
  5. LDFLAGS     = -pipe
  6. ASFLAGS     = -m486
  7.  
  8. OBJS        = board.o game.o gui.o icondata.o mapdata.o menu.o shanghai.o
  9.  
  10. ##############################################################################
  11.  
  12. ifeq (.depend,$(wildcard .depend))
  13. all: shanghai
  14. include .depend
  15. else
  16. all: mapdata.c depend
  17.     $(MAKE) all
  18. endif
  19.  
  20. ##############################################################################
  21.  
  22. shanghai: $(OBJS)
  23.  
  24. ##############################################################################
  25.  
  26. clean:
  27.     $(RM) *~ *.o *.dvi *.log *.aux *.ps *.out .depend .tmp_depend mapdata.* makemap
  28.     strip shanghai
  29.  
  30. ##############################################################################
  31.  
  32. depend:
  33.     for i in *.c;do $(CPP) $(CPPFLAGS) -MM $$i;done >.tmp_depend
  34.     mv .tmp_depend .depend
  35.  
  36. ##############################################################################
  37.  
  38. mapdata.c mapdata.h: makemap
  39.     makemap